package com.hkd.cya.策略模式加简单工厂;

import java.util.Scanner;

public class Client {
    public static void main(String[] args) {
        System.out.println("*********软件学院2306班陈奕安的节日促销方案********");
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入节日名称：春节、中秋节、端午节");
        String festvial=scanner.next();
        Strategy strategy=SimpleFactory.newStrategy(festvial);
        SalesMan salesMan=new SalesMan(strategy);
        salesMan.salesManShow();

    }
}
